package com.bnlr.lrparking.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.bnlr.lrparking.R;
import com.bnlr.lrparking.model.ByStagesDetailBean;

import java.util.List;

/**
 *
 *
 * @author Administrator
 * @date 2017/12/4
 */

public class ByStagesDetailAdapter extends BaseQuickAdapter<ByStagesDetailBean,BaseViewHolder>{
    public ByStagesDetailAdapter(@Nullable List<ByStagesDetailBean> data) {
        super(R.layout.item_stages_detail_adapter_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ByStagesDetailBean item) {
        helper.setText(R.id.stage_detail_month,item.getPeriods());
        helper.setText(R.id.stage_detail_bj,item.getPrincipal());
        helper.setText(R.id.stage_detail_lx,item.getInterest());
    }
}
